package cn.simonfish.carrier.common.web;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by simon on 2017/9/20.
 */
public class UserSessionMap {

    private static final Map<String,String > userSessionIds = new HashMap();

    public static void register(String phone,String sessionId){
        userSessionIds.put(phone,sessionId);
    }

    public static String get(String phone) {
        return userSessionIds.get(phone);
    }

    public static void release(String phone) {
        userSessionIds.remove(phone);
    }
}
